@extends('Admin.layout.layout')
@section('title','友情链接')
@section('con')
<html>
 <head>
 	
 </head>
 <body>
 
    <table id="sample_2" class="table table-striped table-bordered table-hover dataTable" aria-describedby="sample_2_info"> 
     <thead> 
      <tr role="row">
     
       <th class="sorting" role="columnheader" tabindex="0" aria-controls="sample_2" rowspan="1" colspan="1" style="width: 170px;" aria-label="Username: activate to sort column ascending">友情链接图</th>
       <th class="hidden-480 sorting" role="columnheader" tabindex="0" aria-controls="sample_2" rowspan="1" colspan="1" style="width: 307px;" aria-label="Email: activate to sort column ascending">友情链接地址</th>
       <th class="hidden-480 sorting" role="columnheader" tabindex="0" aria-controls="sample_2" rowspan="1" colspan="1" style="width: 170px;" aria-label="Status: activate to sort column ascending">友情链接说明</th>
       <th class="hidden-480 sorting" role="columnheader" tabindex="0" aria-controls="sample_2" rowspan="1" colspan="1" style="width: 170px;" aria-label="Status: activate to sort column ascending">操作</th>
      </tr> 
     </thead>
      <!-- 遍历部分 -->
      @foreach($link as $k => $v)
     <tbody role="alert" aria-live="polite" aria-relevant="all">
      <tr class="gradeX even"> 
        
       <td class=" "><img width="150px" src="/upload/{{$v->img}}" alt=""></td> 
       <td class="hidden-480 "><a href="mailto:looper90@gmail.com">{{$v->link}}</a></td> 
       <td class=" "><span class="label label-warning">{{$v->content}}</span></td>
       <td class=" "><a href="{{url('/admin/link/delete',['id'=>$v->id])}}">删除</a>&nbsp;||&nbsp;<a href="{{url('/admin/link/update',['id'=>$v->id])}}">修改</a></td>  
      </tr>
     @endforeach
    </table>
    <div class="row-fluid">
     <div class="span6">
      <div class="dataTables_info" id="sample_2_info">
      此链接值得拥有
      </div>
     </div>
     <div class="span6">
      <div class="dataTables_paginate paging_bootstrap pagination">
       
        	{!! $link->render() !!}
        	
      </div>
     </div>
    </div>
   </div> 
  </div>
 </body>
</html>
	






@endsection
@section('myjs')

@endsection